using System.Windows;
using $safeprojectname$.Views;
using Microsoft.Practices.Composite.Modularity;
using Microsoft.Practices.Composite.UnityExtensions;
using Microsoft.Practices.Unity;

namespace $safeprojectname$
{
    public class Bootstrapper : UnityBootstrapper
    {
        private ShellView shell;

        protected override DependencyObject CreateShell()
        {
            var shellViewModel = Container.Resolve<ShellViewModel>();
            shell = Container.Resolve<ShellView>();
            shell.DataContext = shellViewModel;
            shell.Show();
            return shell;
        }

        protected override IModuleCatalog GetModuleCatalog()
        {
            return new DirectoryModuleCatalog {ModulePath = @"."};
        }
    }
}